package com.hymjweb.demo.hymj.finance_manage.repayment.bean;

import com.hymjweb.demo.framework.util.pojoContrast.FieldMeta;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "cw_repayment")
@Data
@ToString
public class CwRepaymentPojo implements Serializable {
    /**
     * 	id varchar(20) not null comment '客户还款ID' primary key,
     * 	customer_id varchar(20) null comment '客户ID,关联m_customer.id',
     * 	repayment_way_id bigint null comment '还款方式ID,关联xt_dic.id key=''XT_DIC_REPAYMENT_WAY''',
     * 	amount decimal(10,2) null comment '还款金额',
     * 	available_amount decimal(10,2) null comment '可用还款金额,初始金额同于还款金额,当有还款时动态修改，直到为0为止',
     * 	regist_user_id varchar(20) null comment '还款登记人ID,关联xt_user.id',
     * 	regist_date datetime null comment '还款登记日期',
     * 	voucher_file_id varchar(20) null comment '还款凭证文件ID,xt_file.id',
     * 	audit_status_id bigint null comment '还款审核状态,关联xt_dic.id key=''XT_DIC_AUDIT_STATUS''',
     * 	audit_user_id varchar(20) null comment '还款审核人ID,关联xt_user.id',
     * 	audit_date datetime null comment '审核日期',
     * 	comment varchar(2000) null comment '备注',
     * 	create_time datetime null comment '创建时间',
     * 	create_user_id varchar(50) null comment '创建用户ID',
     * 	update_time datetime null comment '更新时间',
     * 	update_user_id varchar(50) null comment '更新用户ID'
     *
     */

    @FieldMeta(columnname = "id", name = "客户还款ID", comment = "客户还款ID")
    private String id;

    @FieldMeta(columnname = "customer_id", name = "客户ID", comment = "客户ID,关联m_customer.id")
    private String customerId;

    @FieldMeta(columnname = "repayment_way_id", name = "还款方式ID", comment = "还款方式ID,关联xt_dic.id key = 'XT_DIC_REPAYMENT_WAY'")
    private Long repaymentWayId;

    @FieldMeta(columnname = "amount", name = "还款金额", comment = "还款金额")
    private Double amount;

    @FieldMeta(columnname = "available_amount", name = "可用还款金额", comment = "可用还款金额,初始金额同于还款金额,当有还款时动态修改，直到为0为止")
    private Double availableAmount;

    @FieldMeta(columnname = "regist_user_id", name = "还款登记人ID", comment = "还款登记人ID,关联xt_user.id")
    private String registUserId;

    @FieldMeta(columnname = "regist_date", name = "还款登记日期", comment = "还款登记日期")
    private Date registDate;

    @FieldMeta(columnname = "voucher_file_id", name = "还款凭证文件ID", comment = "还款凭证文件ID,xt_file.id")
    private String voucherFileId;

    @FieldMeta(columnname = "audit_status_id", name = "还款审核状态ID", comment = "还款审核状态,关联xt_dic.id key = 'XT_DIC_AUDIT_STATUS'")
    private Long auditStatusId;

    @FieldMeta(columnname = "audit_user_id", name = "还款审核人ID", comment = "还款审核人ID,关联xt_user.id")
    private String auditUserId;

    @FieldMeta(columnname = "audit_date", name = "审核日期", comment = "审核日期")
    private Date auditDate;

    @FieldMeta(columnname = "comment", name = "备注", comment = "备注")
    private String comment;

    @FieldMeta(columnname = "create_time", name = "创建时间")
    private Date createTime;

    @FieldMeta(columnname = "create_user_id", name = "记录添加人ID", comment = "关联XT_USER.ID")
    private String createUserId;

    @FieldMeta(columnname = "update_time", name = "更新时间")
    private Date updateTime;

    @FieldMeta(columnname = "update_user_id", name = "更新用户ID", comment = "关联XT_USER.ID")
    private String updateUserId;

}
